﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HeWeatherAPI.Model
{
    public class HeWeatherResult
    {
        public static HeWeatherResult Error = new HeWeatherResult();

        public List<HeWeather> Weather
        {
            get;set;
        }


        public HeWeatherResult()
        {
            this.Weather = new List<HeWeather>();
        }
    }

    public class HeWeather
    {
        public string City { get; set; }

        public List<DailyForcast> DailyForcasts { get; set; }

        public List<HourlyForcast> HourlyForcasts { get; set; }

        public string Status { get; set; }

        public Weather Current { get; set; }

        public HeWeather()
        {
            this.DailyForcasts = new List<DailyForcast>();
            this.HourlyForcasts = new List<HourlyForcast>();
        }
    }

    public class DailyForcast
    {
        public DateTime Date { get; set; }
        public float MaxTemperature { get; set; }
        public float MinTemperature { get; set; }
        public string Condition { get; set; }
    }

    public class Weather
    {
        public string City { get; internal set; }
        public string Condition { get; set; }
        public float Temperature { get; set; }
    }

    public class HourlyForcast
    {
        public DateTime Time { get; set; }

        public float Temperature { get; set; }
    }
}
